package com.community.property.controller;

import com.community.property.domain.Assign;
import com.community.property.service.IAssignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/assign")
public class AssignController {
@Autowired
    private IAssignService assignService;
@GetMapping("/getAllAssign")
    public List<Assign> getAllAssign() {

    List<Assign> list= assignService.getAssign();
    return list;



}


}
